Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sqlite cache store #3657

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

flakey5
Copy link
Member

@flakey5 flakey5 commented Oct 1, 2024

Note: this is a draft since #3562 isn't landed. Until it is landed, this will be based off of that pr's branch. For the actual diff see flakey5/undici@flakey5/3231...flakey5:undici:flakey5/20240910/sqlite-cache-store

This relates to...

Adding client side http caching (#3562)

Rationale

Adds a sqlite cache store option given the --experimental-sqlite flag is provided

Changes

Features

  • Cache store using sqlite as a backend

Bug Fixes

n/a

Breaking Changes and Deprecations

n/a

Status

cc @mcollina @ronag

@flakey5 flakey5 force-pushed the flakey5/20240910/sqlite-cache-store branch from c33c78e to 6c8ea8f Compare October 1, 2024 06:20
@flakey5 flakey5 force-pushed the flakey5/20240910/sqlite-cache-store branch from 6c8ea8f to a015bf2 Compare October 15, 2024 02:16
@flakey5 flakey5 marked this pull request as ready for review October 15, 2024 02:17
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some docs?

@flakey5 flakey5 force-pushed the flakey5/20240910/sqlite-cache-store branch 2 times, most recently from 592ffb3 to d951470 Compare October 16, 2024 07:21
lib/cache/sqlite-cache-store.js Outdated Show resolved Hide resolved
lib/cache/sqlite-cache-store.js Outdated Show resolved Hide resolved
lib/cache/sqlite-cache-store.js Show resolved Hide resolved
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@flakey5 flakey5 force-pushed the flakey5/20240910/sqlite-cache-store branch from 19b0eaf to 93a306c Compare November 2, 2024 08:20
@flakey5 flakey5 force-pushed the flakey5/20240910/sqlite-cache-store branch 2 times, most recently from 34b34d7 to 60a9679 Compare November 14, 2024 04:44
Co-authored-by: Robert Nagy <[email protected]>
Co-authored-by: Isak Törnros <[email protected]>

Signed-off-by: flakey5 <[email protected]>
@flakey5 flakey5 force-pushed the flakey5/20240910/sqlite-cache-store branch from 60a9679 to 8e0fa89 Compare November 14, 2024 05:53
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

lib/cache/sqlite-cache-store.js Outdated Show resolved Hide resolved
index.js Show resolved Hide resolved
test/cache-interceptor/cache-stores.js Outdated Show resolved Hide resolved
Signed-off-by: flakey5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants